calendar object
This method returns the number of seconds between two dates.
double diff_seconds(calendar@ object)
Parameters:
object
The handle to another valid calendar object.
Return value:
The difference between the current calendar's date and the date of the passed calendar object handle in seconds.
Remarks:
Unlike diff_years, this method returns an integer representation of the difference.
Example:
// Find out the number of seconds between October 7, 1767 and now.
void main()
{
calendar test;
calendar now;
test.set(1767, 10, 7, 9, 0, 0);
double diff=test.diff_seconds(now);
alert("diff_seconds", "There are "+diff+" seconds between October 7, 1767 and now.");
}